package main

import (
	"github.com/gin-gonic/gin"
	_ "taofoo.top/learn/endPoint"
	"taofoo.top/learn/ginHelper"
)

func main() {
	engine := gin.Default()

	//去除控制台颜色
	gin.DisableConsoleColor()
	//加载全局模板
	engine.LoadHTMLGlob("templates/*")
	//设置静态资源
	engine.Static("/assets", "./templates")

	// 给 ginHelper 挂载 engine
	ginHelper.MountEngine(engine)
	// 启动路由api查询功能
	ginHelper.EnableRouterApi()

	engine.Run("0.0.0.0:8888")
}
